package com.yinhd.study.streamStudy;

/**
 * @program: study
 * @description:
 * @Author: chengl
 * @create: 2022-01-14 16:24
 **/
public class Sku {
    //商品id
    private  Integer skuId;
    //名称
    private  String name;
    //单价
    private  Double skuPrice;
    //购买总数
    private  Integer totalNum;
    //总价
    private  Double  totalPrice;
    //商品类型
    private  Enum skuCategory;

    public Sku(Integer skuId, String name, Double skuPrice, Integer totalNum, Double totalPrice, Enum skuCategory) {
        this.skuId = skuId;
        this.name = name;
        this.skuPrice = skuPrice;
        this.totalNum = totalNum;
        this.totalPrice = totalPrice;
        this.skuCategory = skuCategory;
    }

    public int compareTo(Sku sku){
        return 1;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSkuPrice() {
        return skuPrice;
    }

    public void setSkuPrice(Double skuPrice) {
        this.skuPrice = skuPrice;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Enum getSkuCategory() {
        return skuCategory;
    }

    public void setSkuCategory(Enum skuCategory) {
        this.skuCategory = skuCategory;
    }

}
